package com.wwj.study.strategy;

import com.wwj.study.strategy.pay.AliPay;
import com.wwj.study.strategy.pay.WeiXinPay;

/**
 * Created by lenovo on 2018/11/18.
 */
public enum PayType {
    WeiXinPay(new WeiXinPay()),AliPay(new AliPay());

    private Pay pay;
    PayType(Pay pay){
        this.pay=pay;
    }

    public Pay getPay(){
        return this.pay;
    }
}
